package com.settlement.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.settlement.system.common.base.BaseEntity;
import com.settlement.system.common.enums.EmailStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 邮箱表
 * </p>
 *
 * @author huangrensen
 * @since 2024-07-17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysEmail extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;


    /**
     * 邮箱
     */
    private String email;


    /**
     * 密码
     */
    private String password;

    /**
     * 姓氏
     */
    private String firstName;

    /**
     * 名字
     */
    private String lastName;

    /**
     * 年
     */
    private String yearStr;

    /**
     * 月
     */
    private String monthStr;

    /**
     * 日
     */
    private String dayStr;

    /**
     * 区域
     */
    private String phoneArea;

    /**
     * 绑定手机号码
     */
    private String phone;


    /**
     * 状态
     */
    private Integer status = EmailStatusEnum.UN_REGISTER.getValue();
    @TableField(exist = false)
    private String statusName;

}
